using System;
using System.Collections.Generic;
using System.Text;

namespace NUnit.OptimizedInferredRelationships.Domain
{
    public class Vehicule
    {
        protected string id;

        public string Id
        {
            get { return id; }
            set { id = value; }
        }

        protected IList<Passenger> passengers = new List<Passenger>();

        public IList<Passenger> Passengers
        {
            get { return passengers; }
            set { passengers = value; }
        }
    }

    public class Passenger
    {
        public Passenger()
        {
        }

        public Passenger(string name)
        {
            this.name = name;
        }

        protected string name;

        public string Name
        {
            get { return name; }
            set { name = value; }
        }

    }
}
